// import '../css/indexStyle.css'
//引入ajax
import ajax from '../../utils/ajax.js'



const tableList = document.getElementById("list")
// alert(123)
ajax('get', '/api/getAdminList').then(result => {
    alert(456)
    console.log(result);
    document.write(result)
    if (result.flag) {
        // alert(123)
        result.data.forEach(item => {
            let tr = '<tr>';
            tr += `<td>${item.id}</td>`;
            tr += `<td>${item.uid}</td>`;
            tr += `<td>${item.pwd}</td>`;
            tr += `<td>${item.createdTime}</td>`;
            tr += `<td>${item.updatedTime}</td>`;

            tr += '</tr>'
            tableList.innerHTML += tr
        });
    }
})
